import React from 'react'
import { ScrollView } from 'react-native'
import RouteDesc from './RouteDesc'
import flexStyle from '../../../configs/flex';
import Details from './Details/Details';
import { px2dp } from 'rn-xiaobu-utils';

export default class RouteDetailOnePage extends React.Component {
  render() {
    return (
      <ScrollView style={[flexStyle.flexV, { marginTop: px2dp(42) }]}>
        <RouteDesc busNames={this.props.busNames} allStationNumber={this.props.allStationNumber}
          allPrice={this.props.allPrice}></RouteDesc>
        <Details steps={this.props.steps}></Details>
      </ScrollView>
    )
  }
}